package com.greatwqs.wmall.order.provider.model.po;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * Created by MyBatis Generator 2025/04/01
 * https://github.com/greatwqs/mybatis-generator-plugin
 */
@Getter
@Setter
@ToString
public class OrderDetail {
    private Long orderDetailId;

    private Long orderId;

    private Long productId;

    private BigDecimal productPrice;

    private Integer productNum;

    private String productName;

    private String productImg;

    private Boolean valid;

    private Date createTime;

    private Date updateTime;

    public BigDecimal getDetailPrice() {
        return productPrice.multiply(new BigDecimal(productNum));
    }
}